using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

using Deepcode.Flux.Core.Systems.Security;
using Deepcode.Flux.Core.Systems.Audit;

public partial class Private_Config_Event_configuration : Deepcode.Flux.Core.UI.AdministrationModulePage
{
	public override string RequiredPermissionCode { get { return "FluxGeneralAdmin"; } }
	/// <summary>
	/// Page Load event
	/// </summary>
	/// <param name="sender"></param>
	/// <param name="e"></param>
	protected void Page_Load(object sender, EventArgs e)
	{
		if (!Page.IsPostBack)
		{
			// Load info
			_logtrace.Checked			= Deepcode.Flux.Core.Systems.Audit.SystemEventConfiguration.LogTrace;
			_loginformation.Checked		= Deepcode.Flux.Core.Systems.Audit.SystemEventConfiguration.LogInformation;
			_logimportant.Checked		= Deepcode.Flux.Core.Systems.Audit.SystemEventConfiguration.LogImportant;
			_logcritical.Checked		= Deepcode.Flux.Core.Systems.Audit.SystemEventConfiguration.LogCritical;
			_logerror.Checked			= Deepcode.Flux.Core.Systems.Audit.SystemEventConfiguration.LogError;
		}
	}
	/// <summary>
	/// One of the check boxes was changed...
	/// </summary>
	/// <param name="sender"></param>
	/// <param name="e"></param>
	protected void CheckChange(object sender, EventArgs e)
	{
		Deepcode.Flux.Core.Systems.Audit.SystemEventConfiguration.LogTrace			= _logtrace.Checked;
		Deepcode.Flux.Core.Systems.Audit.SystemEventConfiguration.LogInformation	= _loginformation.Checked;
		Deepcode.Flux.Core.Systems.Audit.SystemEventConfiguration.LogImportant		= _logimportant.Checked;
		Deepcode.Flux.Core.Systems.Audit.SystemEventConfiguration.LogCritical		= _logcritical.Checked;
		Deepcode.Flux.Core.Systems.Audit.SystemEventConfiguration.LogError			= _logerror.Checked;
	}

}
